package com.xinyu.utils;

public final class StatusLabelUtils {

    private StatusLabelUtils() {
    }

    public static String taskStateLabel(Integer state) {
        if (state == null) {
            return "未知";
        }
        switch (state) {
            case 1:
                return "待处理";
            case 2:
                return "进行中";
            case 3:
                return "已完成";
            case 4:
                return "已关闭";
            default:
                return "未知";
        }
    }

    public static String dailyStateLabel(Integer state) {
        if (state == null) {
            return "未知";
        }
        switch (state) {
            case 1:
                return "未解决";
            case 2:
                return "进行中";
            case 3:
                return "已解决";
            case 4:
                return "已关闭";
            default:
                return "未知";
        }
    }
}
